var Myapp = new Vue({
    el:'#root',
    data:{
        list:[],
        done:[],
        inputValue:'',
        doneValue:'',
        a:[]
    },
    methods:{
        handleKeyup(){
            this.list.push(this.inputValue)
            this.inputValue = ''
        },
        handleClickOnList(index){
            this.list.splice(index,1)
        },
        handleClickOnDone(index){
            this.done.splice(index,1)
        },
        handleClickToDone(index){
            a = this.list.splice(index,1);
            this.done.push(a[0]);
            a.pop();
        },
        handleClickToDoing(index){
            a = this.done.splice(index,1);
            console.log(a[0]);
            this.list.push(a[0]);
            console.log(a[0]);
            a.pop();
        }
    }
})